﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Procenge.PortalVendas.Models.Produto>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Cadastro de Produto
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2 align="center">Cadastro de Produto</h2>

    <table align="center">
        <tr align="center">
            <th align="center"></th>
            <th>
                CÓDIGO
            </th>
            <th>
                NOME
            </th>
            <th>
                FORNECEDOR
            </th>
           </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.cod }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.cod })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.cod })%>
            </td>
            <td>
                <%: item.cod %>
            </td>
            <td>
                <%: item.nome %>
            </td>
            <td>
                <%: item.fornecedor_cnpj %>
            </td>
           </tr>
    
    <% } %>

    </table>

    <p align="center">
        <%: Html.ActionLink("Novo", "Create") %>
    </p>

</asp:Content>

